﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NewsClassifierFreshnessMeasurement.QueryExtractor;
using NewsClassifierFreshnessMeasurement.Model;

namespace MyQueryExtractor
{
    class MyQueryExtractorFactory : QueryExtractorAbstractFactory
    {
        public override IQueryExtractor CreateQueryExtractor(string keyAppendix, Configuration config)
        {
            IQueryExtractor queryExtractor = null;
            if (keyAppendix == "2")
                queryExtractor = new MyQueryExtractor2();
            else if (keyAppendix == "3")
                queryExtractor = new MyQueryExtractor3();
            else if (keyAppendix == "4")
                queryExtractor = new MyQueryExtractor4();

            return queryExtractor;
        }
    }
}
